package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.eiahe.hr.salary.domain.SalaryAdjustmentRecord;
import org.eiahe.hr.salary.domain.SalaryCorrectionRecord;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 薪资纠错记录视图对象 hr_salary_correction_record
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = SalaryCorrectionRecord.class)
public class SalaryCorrectionRecordVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 纠错记录ID
     */
    private Long correctionId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 年月(yyyyMM格式)
     */
    @ExcelProperty(value = "年月")
    private String yearMonth;

    /**
     * 纠错类型(1冲减 2状态回退 3数据修正)
     */
    @ExcelProperty(value = "纠错类型")
    private String correctionType;

    /**
     * 原薪资构成ID
     */
    @ExcelProperty(value = "原薪资构成ID")
    private Long originalStructureId;

    /**
     * 冲减金额(负值表示冲减)
     */
    @ExcelProperty(value = "冲减金额")
    private BigDecimal correctionAmount;

    /**
     * 原状态
     */
    @ExcelProperty(value = "原状态")
    private String originalStatus;

    /**
     * 新状态
     */
    @ExcelProperty(value = "新状态")
    private String newStatus;

    /**
     * 纠错原因
     */
    @ExcelProperty(value = "纠错原因")
    private String correctionReason;

    /**
     * 审批状态(0待审批 1审批通过 2审批拒绝)
     */
    @ExcelProperty(value = "审批状态")
    private String approvalStatus;

    /**
     * 审批人
     */
    @ExcelProperty(value = "审批人")
    private String approver;

    /**
     * 审批意见
     */
    @ExcelProperty(value = "审批意见")
    private String approvalOpinion;

    /**
     * 删除标志(0存在 1删除)
     */
    private String delFlag;

    private Date createTime;
}
